//app.js
var api = require('utils/api.js')
App({
  onLaunch: function () {
    //登录
    api.wxMiniAppLogin()
    let _self = this;
    wx.getSystemInfo({
      success: res => {
        let modelmes = res.model;
        if (modelmes.search('iPhone X') != -1) {
          _self.globalData.isIphoneX = true
        }
        wx.setStorageSync('modelmes', modelmes)
        //导航高度
        this.globalData.navHeight = res.statusBarHeight + 46;
      }
    })
  },
  globalData:{
    navHeight:0,
    isIphoneX:false,
    vrList:[],
    caseContent:'',
    selectLocate:null,
    pindex:-1,
    cindex:-1,
  }
})